package com.guli.common.constant;
/*
 * @Author 罗
 * @date 2020/9/23 - 7:11 下午
 */

import com.baomidou.mybatisplus.annotation.IEnum;

import java.io.Serializable;

public enum ProductAttrTypeEnum implements IEnum<Integer> {

    SELL_ATTRIBUTE(0, "销售属性"), BASIC_ATTRIBUTE(1, "基本属性");

    private Integer attrType;

    private String message;

    ProductAttrTypeEnum(Integer attrType, String message) {
        this.attrType = attrType;
        this.message = message;
    }

    public Integer getAttrType() {
        return attrType;
    }


    public String getMessage() {
        return message;
    }


    @Override
    public Integer getValue() {
        return this.attrType;
    }

    @Override
    public String toString() {
        return this.message;
    }
}
